coloreditor: Don't unref unless we own it
authorMatthias Clasen <mclasen@redhat.com>
Mon, 27 Sep 2021 20:40:29 +0000 (16:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 27 Sep 2021 20:40:29 +0000 (16:40 -0400)
commit834c72bb0f66038c9c5b6c7acb2ffbb1840c1909
tree011a8b5430b40ac68082dac14a30b3033ed58cb2
parent6b868489843515e85b32b7058f1249abdd374711
coloreditor: Don't unref unless we own it

Calling gtk_widget_class_bind_template_child does
*not* give you a reference that you need to unref.
It manages the reference for you. So calling
g_clear_object on such a member is wrong.
gtk/gtkcoloreditor.c